import { idleTaskQueue } from './IdleTaskQueue';
import { defineStartup } from '~/utils/defines';

export default defineStartup((app, hooks) => {
  hooks.onMount(() => {
    /* 免费转盘相关 */
    // idleTaskQueue.addTask(() => queryClient.fetchQuery({
    //   queryKey: [apis.apiActivityLuckySpinReady.id],
    //   queryFn: () => apis.apiActivityLuckySpinReady(undefined),
    // }));
    idleTaskQueue.addTask(() => import('~comp-b/global-popups/lottery/Lottery.vue'));
    idleTaskQueue.addTask(() => import('~comp-b/global-popups/lottery/LotteryBg.vue'));

    /* 钱包相关 */
    idleTaskQueue.addTask(() => import('~comp-b/global-popups/wallet/index.vue'));
    idleTaskQueue.addTask(() => import('~comp-b/global-popups/wallet/Deposit.vue'));
    idleTaskQueue.addTask(() => import('~comp-b/global-popups/wallet/Withdraw.vue'));
  });
});
